from django import template
from django.http import HttpRequest
from studenthoods.apps.world.models import Testimonial
import os
import os.path
import settings

register = template.Library()

@register.inclusion_tag('world/templates/box_testimonials.html', takes_context=True)
def testimonials(context, count=5):
    testimonials =  Testimonial.objects.all().filter(active=True)[:count]
    
    return {'testimonials':testimonials,}